package Demo;

public class Manager extends Coder{
    public int slary;

    public Manager(int slary) {
        this.slary = slary;
    }

    public Manager(String name, String id, int money, int slary) {
        super(name, id, money);
        this.slary = slary;
    }

    public int getSlary() {
        return slary;
    }

    public void setSlary(int slary) {
        this.slary = slary;
    }
    public void Print(){

        System.out.println("姓名："+getName()+"，工号："+getId()+"，工资："+getMoney()+"，奖金："+slary);
    }
}
